#ifndef __DECODER_H__
#define __DECODER_H__

#include "./pngdecoder.h"
#include "io/iostub.h"

namespace MiniUI
{

class Decoder
{
public:
    Decoder(const char* szImagePath);
    ~Decoder();
    
    DecodeFormat* GetDecodeFormat();
    bool ReadImageInfo();
    bool ReadImageFrame();
private:
    DecodeFormat* m_deco;
    BaseIOStub* m_iostub;
    BaseDecoder* m_pRawDecoder;
    byte m_nStatus;
};

}

#endif